import React from 'react';
import {render} from 'react-dom'
import App from './app'
class AppContainer extends React.Component{
    constructor(props){
        super(props);
        this.state = {
            name:"parcel打包"
        }
    }
    componentDidMount(){
        setTimeout(() => {
            this.setState({
                name:"parcel打包完成"
            })
        }, 2000);
    }
    render(){
        return <App name={this.state.name}/>
    }
}
render(
    <AppContainer/>,
    document.getElementById('app')
)